package com.yds.ydsdatasetbackend.model.vo;

import cn.hutool.json.JSONUtil;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yds.ydsdatasetbackend.model.entity.File;
import com.yds.ydsdatasetbackend.model.entity.PatientGroup;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;
import java.util.Date;

/**
 * 病人分组表
 * @TableName patient_group
 */
@Data
public class PatientGroupVO implements Serializable {
    /**
     * id
     */
    private Long id;

    /**
     * 父节点
     */
    private Long parentId;

    /**
     * 分组名称
     */
    private String groupName;

    /**
     * 用户 id
     */
    private Long userId;

    /**
     * 封装类转对象  
     */
    public static PatientGroup voToObj(PatientGroupVO patientGroupVO) {
        if (patientGroupVO == null) {
            return null;
        }
        PatientGroup patientGroup = new PatientGroup();
        BeanUtils.copyProperties(patientGroupVO, patientGroup);

        return patientGroup;
    }

    /**
     * 对象转封装类  
     */
    public static PatientGroupVO objToVo(PatientGroup patientGroup) {
        if (patientGroup == null) {
            return null;
        }
        PatientGroupVO patientGroupVO = new PatientGroupVO();
        BeanUtils.copyProperties(patientGroup, patientGroupVO);

        return patientGroupVO;
    }
    
    
    
    private static final long serialVersionUID = 1L;
}